import request from '@/utils/request'

// 获取员工列表
export const apiGetStaffList = (data) => {
    return request({
        url: '/mdm-staff/find/search',
        method: 'post',
        data
    })
}

// 获取员工资质列表
export const apiGetStaffQualificationsList = (data) => {
    return request({
        url: '/mdm-staff-qualifications/find/search',
        method: 'post',
        data
    })
}

// 获取员工资质详情
export const apiGetStaffQualificationsInfo = (id) => {
    return request({
        url: '/mdm-staff-qualifications/find/detail',
        method: 'post',
        data: {
            id
        }
    })
}

//获取所有员工的列表
export const apiGetAllStaffList = () => {
    return request({
        url: '/mdm-staff/find/list',
        method: 'post',
        data: {}
    })
}

//获取检测员工列表
export const apiGetDetectionStaffList = () => {
    return request({
        url: '/mdm-staff/find/check/list',
        method: 'post',
        data: {
            repeat: true
        }
    })
}

// 新增员工列表
export const apiAddUser = (data) => {
    return request({
        url: '/mdm-staff/create',
        method: 'post',
        data
    })
}